<template>
  <div>
    <el-button @click="dialog">弹框</el-button>
    <dialog-test :data="dialogParam" v-model:isShow="open">
      <dialog-body @close="close"></dialog-body>
    </dialog-test>
  </div>
</template>

<script setup>
import DialogTest from './DialogTest.vue';
import DialogBody from './DialogBody.vue';
import { reactive, ref, onMounted, getCurrentInstance } from 'vue';
const dialogParam = reactive({ isShow: false });
const open = ref(false);
const dialog = () => {
  // dialogParam.isShow = true;
  open.value = true;
  dialogParam.title = '弹窗测试aa';
};
const openp = () => {
  alert('打开前');
};
const close = obj => {
  open.value = false;
  alert('关闭时间');
};
</script>
<style lang="scss" scoped></style>
